﻿#include "secondmathimplabc4.h"
#include "tools/base_math_tools.h"
SecondMathImplABC4::SecondMathImplABC4(QObject *parent)
{

}

const QString SecondMathImplABC4::fun()
{
    QString tmp ;
    int num1 ,num2,num3;
    do{
     num1 = BaseMathTools::generateRandomNumber(3, 8);
     num2 = BaseMathTools::generateRandomNumber(3, 8);
     num3 = BaseMathTools::generateRandomNumber(2, 6);

   }while(num1 < num3);
   tmp = QString::number(num1*num2) + " "+STR_DIV_OPTION+" " +  QString::number(num2) + " - "+  QString::number(num3)+ " = ";
   return tmp;
}
